namespace UserService;

public class UserService : IUserService
{
    public UserService()
    {
        Names.Add("Extra");
        Names.Add("shifww");
        Names.Add("lemon tea");
    }
    private static List<string> Names = new();
    public string? FetchName(int index)
    {
        return Names[index - 1];
    }
    public bool AddName(string Name)
    {
        Names.Add(Name);
        if (Names[Names.Count() - 1] == Name)
        {
            return true;
        }
        return false;
    }
}
